Interface Agent

All Known Implementing Classes:
HumanAgent, LogicAgent

public interface Agent
Represents a player in "Hunt the Wumpus."
Author:
Stephen G. Ware
  • Method Summary

    Modifier and Type Method Description
    Action chooseAction​(Game game)
    Chooses the next move for the player to make.
    void observe​(Result result)
    Alerts the player to the result of the most recent action.
  • Method Details

    • chooseAction

      Action chooseAction​(Game game)
      Chooses the next move for the player to make.
      Parameters:
      game - the current state of the game
      Returns:
      the action the player should take
    • observe

      void observe​(Result result)
      Alerts the player to the result of the most recent action.
      Parameters:
      result - the result of the most recent action